package com.ydsungan.service;

import com.ydsungan.pojo.*;

import java.text.ParseException;
import java.util.List;

public interface QuestionService {
    long countQuestionByChapterId(QuestionExample questionExample);
    long countPracticeByChapterId(PracticeExample practiceExample);
    List<Question> listQuestion(QuestionExample questionExample);
    List<Practice> listPractice(PracticeExample practiceExample);
    int insertRecord(Practice practice);
    int updateQuestion(Question question);
    int updatePracticeSelective(Practice practice);
    Question findQuestionById(int id);
    int insertUsingRecord(Used used);
    List<Integer> getReviewQuestionsList(String openId,  String bookId) throws ParseException;
    int insertReviewRecord(Review review);


}
